package com.fsoft.finaltest.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import com.fsoft.finaltest.dto.Food;

public class FoodMapper implements RowMapper<Food>{
	
	public Food mapRow(ResultSet rs, int rowNum) throws SQLException {
	      Food food = new Food();
	      food.set_foodID(rs.getInt("FoodID"));
	      food.set_foodName(rs.getString("FoodName"));
	      food.set_foodType(rs.getString("FoodType"));
	      return food;
	   }
}
